package com.yuntai.pms.model.dto;

import com.alibaba.fastjson.JSON;
import com.yuntai.pms.model.param.PageParam;

import java.util.Date;

/**
 * @ClassName: AipAppQueryDto
 * @Description: 分页数据查询参数
 * @author caijg@hsyuntai.com
 * @date 2017年11月8日 上午9:05:40
 */
public class AipAppQueryDto extends PageParam {

    private static final long serialVersionUID = 6471553109668101214L;

    /** @Fields name : 应用名称*/
    private String name;  
    
    /** @Fields isvAppId : 开发者应用app_id*/
    private String isvAppId;
    
    /** @Fields appType : 客户端应用类别，0为内部服务调用，1为项目应用服务调用，2为第三方应用服务调用；*/
    private Integer  appType;     
    
    /** @Fields description : 应用描述*/
    private String description; 
    
    /** @Fields status : 状态：有效(enabled)、待审核（check）、无效(disabled) , 默认有效*/
    private String status;
    
    /** @Fields username : 应用所属用户：可为username phone_no 或 email 非查询条件*/
    private String username;
    
    /** @Fields userId : 通过username查出来的user主键*/
    private Long userId;
    
    private String createTimeStart; 
    
    private String createTimeEnd;	

    private String updateTimeStart;

    private String updateTimeEnd;

    private String search;

    private String auditPublishRemark;
    private Date   auditTime;
    private Date   publishTime;

    private String nstatus; // not exit publish_success

    public String getNstatus() {
        return nstatus;
    }

    public void setNstatus(String nstatus) {
        this.nstatus = nstatus;
    }

    public String getAuditPublishRemark() {
		return auditPublishRemark;
	}

	public void setAuditPublishRemark(String auditPublishRemark) {
		this.auditPublishRemark = auditPublishRemark;
	}

	public Date getAuditTime() {
		return auditTime;
	}

	public void setAuditTime(Date auditTime) {
		this.auditTime = auditTime;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public String getSearch() {
		return search;
	}

	public void setSearch(String search) {
		this.search = search;
	}

	public String getIsvAppId() {
		return isvAppId;
	}

	public void setIsvAppId(String isvAppId) {
		this.isvAppId = isvAppId;
	}

	public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public Integer getAppType() {
		return appType;
	}

	public void setAppType(Integer appType) {
		this.appType = appType;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getCreateTimeStart() {
		return createTimeStart;
	}

	public void setCreateTimeStart(String createTimeStart) {
		this.createTimeStart = createTimeStart;
	}

	public String getCreateTimeEnd() {
		return createTimeEnd;
	}

	public void setCreateTimeEnd(String createTimeEnd) {
		this.createTimeEnd = createTimeEnd;
	}

	public String getUpdateTimeStart() {
		return updateTimeStart;
	}

	public void setUpdateTimeStart(String updateTimeStart) {
		this.updateTimeStart = updateTimeStart;
	}

	public String getUpdateTimeEnd() {
		return updateTimeEnd;
	}

	public void setUpdateTimeEnd(String updateTimeEnd) {
		this.updateTimeEnd = updateTimeEnd;
	}

	@Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
